import Vue from 'vue'
import App from './App.vue'

import "bootstrap/dist/css/bootstrap.css"
import "./assets/fonts/iconfont.css"
Vue.config.productionTip = false

import axios from "axios"
axios.defaults.baseURL = " https://www.escook.cn"
Vue.prototype.$axios = axios

import VueRouter from 'vue-router'
import MyGoodsList from "./Views/MyGoodsList.vue"
import MyGoodsSearch from "./Views/MyGoodsSearch.vue"
import MyUserInfo from "./Views/MyUserInfo.vue"
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/MyGoodsList'
  },
  {
    path: '/MyGoodsList',
    name: 'MyGoodsList',
    component: MyGoodsList
  },
  {
    path: '/MyGoodsSearch',
    name: 'MyGoodsSearch',
    component: MyGoodsSearch
  },
  {
    path: '/MyUserInfo',
    name: 'MyUserInfo',
    component: MyUserInfo
  },
]
const router = new VueRouter({
  routes
})
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
